//Eg2-12.cpp
#include<iostream.h>
void swap(int &a,int &b) {
	int temp=a;
	a=b;
	b=temp;
}
void main(){
	int x=5;
	int y=10;
	swap(x,y);
	cout<<"x="<<x<<"\ty="<<y<<endl;
}
